package mest.dao.Modeling;

import mest.VO.hank.model.employeeFileModel;
import mest.entity.apart_file;
import mest.entity.employee_file;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-15 22:42
 */
public interface IemployeeFileDao {
    //    1.新增功能
    int insertEmployeeFile(@Param("employee_file")employee_file ef,@Param("theirDb")String theirDb) throws  Exception;

    //   2.基本查询-数量
    int selectCount(@Param("theirDb")String theirDb);

    //   3.基本查询-分页
    List<employee_file> findEmployeeFilePage(@Param("index") Integer index, @Param("pageSize") Integer pageSize,@Param("theirDb")String theirDb);


    //1.删除方法
    int delModel(@Param("id")Integer id,@Param("theirDb")String theirDb);
    //   2.基本查询-分页-模糊查询-过滤删除订单
    List<employeeFileModel> queryAllModel(@Param("index") Integer index,
                                          @Param("pageSize") Integer pageSize, @Param("name1") String name,@Param("theirDb")String theirDb);
    //3.查询总数
    int findCount(@Param("name1") String name,@Param("theirDb")String theirDb);
    //4.动态更新某个值
    int updateByPrimaryKeySelective(@Param("employee_file")employee_file record ,@Param("theirDb")String theirDb);
    //5.通过ID查询
    employee_file selectByPrimaryKey(Integer id,@Param("theirDb")String theirDb);


}
